#ifndef DB_H
#define DB_H
#include <iostream>
#include <memory>
#include <string>

#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlRecord>
#include <QSqlError>
#include <QDebug>

class Db
{
public:
    QString host = "127.0.0.1";
    QString username = "root";
    QString password = "root";
    QString database = "futures";
    int port = 3306;
    Db();
    ~Db();
    bool connect();
    int execute();
    QVector<QMap<QString, QVariant>> query(const QString& sql);
};

#endif // DB_H
